package com.burstly.lib.component.networkcomponent.burstly.html.mraid;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import com.burstly.lib.util.Utils;
import java.util.HashMap;

class ConfigurationBroadcastReceiver extends BroadcastReceiver
  implements Runnable
{
  private static final int DELAY = 1000;
  private final Handler mHandler;
  private int mLastOrientation;
  private final MraidView mMraidView;

  ConfigurationBroadcastReceiver(MraidView paramMraidView)
  {
    this.mMraidView = paramMraidView;
    this.mLastOrientation = Utils.getOrientation(paramMraidView.getContext());
    this.mHandler = new Handler();
  }

  public void onReceive(Context paramContext, Intent paramIntent)
  {
    if (paramIntent.getAction().equals("android.intent.action.CONFIGURATION_CHANGED"))
    {
      int i = Utils.getOrientation(paramContext);
      if (i != this.mLastOrientation)
      {
        this.mLastOrientation = i;
        this.mHandler.postDelayed(this, 1000L);
      }
    }
  }

  public void run()
  {
    HashMap localHashMap = new HashMap();
    this.mMraidView.addScreenSizeValue(localHashMap);
    this.mMraidView.addOrientationValue(localHashMap);
    this.mMraidView.addMaxSizeValue(localHashMap);
    this.mMraidView.fireComplexChangeEvent(localHashMap);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.mraid.ConfigurationBroadcastReceiver
 * JD-Core Version:    0.6.2
 */